package com.itheima.api2;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class Demo10 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个年份:yyyy");
        int  s=sc.nextInt();
        LocalDateTime localDateTime1=LocalDateTime.of(s,3,1,1,1);
      int day= localDateTime1.plusDays(-1).getDayOfMonth();
        System.out.println(day);

    }
}
